<template>
  <div class="bg">
    <div id="centerDiv">
      <el-carousel style="height: 100%" :interval="5000" arrow="always">
        <el-carousel-item v-for="item in pics" :key="item.src">
          <img :src="item.src"/>
        </el-carousel-item>
      </el-carousel>
    </div>
  </div>
</template>
<script>
  import Vue from 'vue';
  import { Carousel,CarouselItem } from 'element-ui';
  Vue.use(Carousel);
  Vue.use(CarouselItem);
  const pics = [{src:require("../assets/guide1.jpg")}
    ,{src:require("../assets/guide2.jpg")}];

  export default {
    name: "checkGuide",
    data() {
      return {
        pics:pics
      }
    }
  }
</script>
<style>
  .el-carousel__container{
    height:100%
  }
</style>
<style scoped>
  .bg{
    position: relative;
    height: 100%;
  }
  #centerDiv{
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100%;
    min-height: 800px;
    margin: auto;
  }
  #centerDiv img{
    /*height: 800px;*/
    height: 100%;
    margin: 0 auto;
    display: block;
  }

</style>
